package net.oschina.app.adapter.explore;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * Created by wuer on 2017/4/8/008.
 */

public class BaseEventFragmentAdapter extends FragmentPagerAdapter {
    private List<Fragment> fragments;
    public BaseEventFragmentAdapter(FragmentManager fm) {
        super(fm);
        this.fragments=fragments;
    }

    @Override
    public Fragment getItem(int position) {
        return fragments.get(position);
    }

    @Override
    public int getCount() {
        return fragments.size();
    }
}
